﻿@using hDUniverseSimulator.AspMvcUtils
@using PersonalWebSite.Common

<!DOCTYPE html>

<html>
<head>
    <link href="@Url.Content("~/Content/css/3rd_party/jquery-ui-1.8.18.custom.css")" type="text/css" rel="Stylesheet" />
    <title>Administration - @ViewBag.Title</title>
    @{
        ViewContext.ClientReferencesManager().IncludeCss("~/Content/css/styles_admin.css");
        ViewContext.ClientReferencesManager().IncludeCss("~/Content/css/3rd_party/jquery-ui-timepicker-addon.css");
        
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/jquery-1.7.1.min.js");
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/jquery-ui-1.8.18.custom.min.js");
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/jquery-ui-timepicker-addon.js");
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/knockout-2.0.0.js");
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/knockout.mapping-latest.js");
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/3rd_party/tooltipsy.min.js");
        
        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/Prototypes.js");

        ViewContext.ClientReferencesManager().IncludeJs("~/Scripts/Admin/PageViewModelBase.js");
    }
    @Html.CssAndJavascriptReferences()
    <script type="text/javascript">
        var _hD = [];
        var globalAnimationDuration = 1000;
        var AppSettings = new function () {
            this.FileSaveUrl = '@Url.Action("SaveFile", "Admin")';
            this.FileLoadUrl = '@Url.Action("LoadFile", "Admin")';

            this.ProcessingIndicator = $('<div style="text-align: center; position: absolute; top: 50%; width: 100%;">Processing...</div>');
            this.LoadingIndicator = $('<div style="text-align: center; position: absolute; top: 50%; width: 100%;">Loading...</div>');
        };
    </script>
</head>
<body>
    @RenderBody()
    @{Html.RenderPartial("ModalOverlay");}
    @{Html.RenderPartial("Notifier");}
    <script type="text/javascript">
        for (var i in _hD) {
            if (typeof (_hD[i]) != "function")
                continue;
            _hD[i]();
        }
    </script>
</body>
</html>
